package main

import (
	"flag"
	"fmt"
	"os"
)

func init() {
	flag.CommandLine = flag.NewFlagSet("", flag.ExitOnError)
	flag.CommandLine.Usage = func() {
		fmt.Fprintf(os.Stderr, "usage of %s \n", "question")
		flag.PrintDefaults()
	}
	//flag.StringVar(&name,"name","everyone","the greeting object")
}

var name4 = flag.String("name", "everyone", "the greeting object")

func main() {
	//flag.Usage = func() {
	//	fmt.Fprintf(os.Stderr,"Use of %s \n","question")
	//	flag.PrintDefaults()
	//}
	flag.Parse()
	//fmt.Println("hello",*name3)
	//ff.Hello(*name4)

	aa := [3]int{1, 5, 7}
	fmt.Println(aa)
	bb := [3]int{12}
	fmt.Println(bb)
	var cc [3]int
	cc[0] = 12
	cc[1] = 14
	cc[2] = 16
	fmt.Println(cc)

	for i := 0; i < len(cc); i++ {
		fmt.Printf("%d element of a is %d\n", i, cc[i])
	}
	for index, value := range cc {
		fmt.Printf("%d element of a is %d\n", index, value)
	}
	for _, value := range cc {
		fmt.Printf("value is %d\n", value)
	}

	ad := [3][2]string{
		{"zoo", "tiger"},
		{"zoo", "panda"},
		{"zoo", "birds"},
	}
	fmt.Println(ad)
}
